define([],function(){
       
       var push = {
       "description": "访问推送插件",
       
       addEventListener:function( event, listener, Boolean ){

           var pushListener = window.pushListener;
           pushListener = pushListener || {};
       
           var listeners = pushListener[event];//click or receive
           listeners = listeners || [];
           listeners.push(listener);
           pushListener[event] = listeners;
           window.pushListener = pushListener;
       cordova.exec(function(){console.log('createMessage 成功');},function(){console.log('createMessage 失败');},"Push","addEventListener");

       },
       
       triggerListener:function(event){
          var pushListener = window.pushListener;
           var listener = pushListener[event];
           if (listener){
               for (var i=0; i<listener.length;i++){
                    listener[i]("接收到消息");
               }
           }
       },
       
       createMessage:function(content,payload,options){
       cordova.exec(function(){console.log('createMessage 成功');},function(){console.log('createMessage 失败');},"Push","createMessage",[content,payload,options]);
       },
       
       clear:function (successCB , errorCB){
       cordova.exec(successCB,errorCB,"Push","clear")
       },
       
       getClientInfo:function (successCB , errorCB){
       cordova.exec(successCB,errorCB,"Push","getClientInfo");
       }
       
       };
       
       return push;
       
       });